package com.lzq.badminton.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lzq.badminton.dto.BookingDto;
import com.lzq.badminton.dto.UpdateBookingDto;
import com.lzq.badminton.entity.Booking;
import com.lzq.badminton.entity.Order;
import com.lzq.badminton.vo.BookingVo;
import com.lzq.badminton.vo.ResponseResult;

import java.time.LocalDate;
import java.util.List;

public interface BookingService extends IService<Booking> {

    void addBookings(List<Booking> bookingDtoList);

//    ResponseResult removeBookings();

    List<BookingVo> listBookings(Long arenaId, LocalDate localDate);

    ResponseResult updateBookings(List<UpdateBookingDto> updateBookingDtoList);

    ResponseResult orderBookings(List<UpdateBookingDto> updateBookingDtoList);

    ResponseResult removeBooking(Long bookingId);


    List<BookingVo> listByOrderId(Long orderId);

    void clearOrderId(Long orderid);

    int deleteRecord();
}
